from config import wait, EC
from my_config import STEPS

@STEPS.step('wait-url')
def wait_url(wait:wait, step:dict) -> None:
    """
    等待直到地址栏切换到指定url
    """
    wait.until(EC.url_to_be(step['val']))
